package com.nari.ies.server.entity;

import lombok.Data;

import java.util.List;

/**
 * 区域和场站DO
 */
@Data
public class AreaAndPlantDO {
    //区域或者场站名称
    private String title;
    //区域或者场站ID
    private String id;
    //类似：全网south、省province、市city、场站station
    private String type;
    //下一级合集
    private List<AreaAndPlantDO> children;

    public String getTitle() {
        return title;
    }

    public void setTitle(Object title) {
        if (title != null) {
            this.title = title.toString();
        }
    }

    public String getId() {
        return id;
    }

    public void setId(Object id) {
        if (id != null) {
            this.id = id.toString();
        }
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<AreaAndPlantDO> getChildren() {
        return children;
    }

    public void setChildren(List<AreaAndPlantDO> children) {
        this.children = children;
    }
}
